<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="PRAGMA" content="NO-CACHE">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <script src="Scripts/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="FusionCharts/FusionCharts.js" type="text/javascript"></script>
</head>
<body>
    <div id="divChart">
    </div>
    <script type="text/javascript">

        $(function () {
            $.ajax({
                type: "GET",
                url: "AjaxHandler.ashx",
                cache: false,
                data: { "type": "chart" },
                success: function (result) {
                    var xml = result;
                    var myChart = new FusionCharts("/FusionCharts/Pie2D.swf", "myChartId", "600", "80%");
                    myChart.setDataXML(xml);
                    myChart.render("divChart");
                }
            });
        });
    </script>
</body>
</html>
